<%@ Page Language="C#" MasterPageFile="~/cms.master" AutoEventWireup="true" CodeFile="ProductsSell.aspx.cs"
    Inherits="cms_ProductsSell" Title="<%$Resources:Language,CmsProductsSellTitle %>" %>

<%@ Register Src="~/controls/ctrlWait.ascx" TagName="ctrlWait" TagPrefix="ctrl" %>
<%@ Register Src="~/controls/ctrlShowInfo.ascx" TagName="ctrlShowInfo" TagPrefix="ctrl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <h2>
        <%=Resources.Language.SellHistory %></h2>
    <ctrl:ctrlWait ID="ctrlWait" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <ctrl:ctrlShowInfo ID="CtrlShowInfo" runat="server" />
            <div style="text-align: center;">
                <%=Resources.Language.Month %>:
                <asp:DropDownList runat="server" ID="ddlMonth" OnSelectedIndexChanged="DateChanged"
                    AutoPostBack="true">
                    <asp:ListItem Value="1" Text="<%$Resources:Language,January %>"></asp:ListItem>
                    <asp:ListItem Value="2" Text="<%$Resources:Language,February %>"></asp:ListItem>
                    <asp:ListItem Value="3" Text="<%$Resources:Language,March %>"></asp:ListItem>
                    <asp:ListItem Value="4" Text="<%$Resources:Language,April %>"></asp:ListItem>
                    <asp:ListItem Value="5" Text="<%$Resources:Language,May %>"></asp:ListItem>
                    <asp:ListItem Value="6" Text="<%$Resources:Language,June %>"></asp:ListItem>
                    <asp:ListItem Value="7" Text="<%$Resources:Language,July %>"></asp:ListItem>
                    <asp:ListItem Value="8" Text="<%$Resources:Language,August %>"></asp:ListItem>
                    <asp:ListItem Value="9" Text="<%$Resources:Language,September %>"></asp:ListItem>
                    <asp:ListItem Value="10" Text="<%$Resources:Language,October %>"></asp:ListItem>
                    <asp:ListItem Value="11" Text="<%$Resources:Language,November %>"></asp:ListItem>
                    <asp:ListItem Value="12" Text="<%$Resources:Language,December %>"></asp:ListItem>
                </asp:DropDownList>
                <%=Resources.Language.Year %>:
                <asp:DropDownList runat="server" ID="ddlYear" OnSelectedIndexChanged="DateChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
            </div>
            <br />
            <div style="width: 100%; text-align: center; background-color: Gray; color: White;"
                id="headerDiv" runat="server">
                <strong>
                    <asp:Label ID="lblMonth" runat="server"></asp:Label></strong><br />
                <%=Resources.Language.Packages %>:
                <asp:Label ID="lblShipments" runat="server"></asp:Label>
                <%=Resources.Language.Goods %>:
                <asp:Label ID="lblProducts" runat="server"></asp:Label>
                <%=Resources.Language.TurnoverBrutto %>:
                <asp:Label ID="lblAmount" runat="server"></asp:Label>
            </div>
            <asp:GridView ID="gvMonthSell" runat="server" AutoGenerateColumns="false" ShowHeader="false"
                CssClass="cmsTables">
                <Columns>
                    <asp:BoundField DataField="ProductID" ItemStyle-Width="5%" />
                    <asp:BoundField DataField="Name" ItemStyle-Width="80%" />
                    <asp:BoundField DataField="Count" ItemStyle-Width="5%" />
                    <asp:BoundField DataField="Price" ItemStyle-Width="10%" />
                </Columns>
            </asp:GridView>
            <br />
            <asp:Repeater ID="rptDaySell" runat="server" OnItemDataBound="rptDaySell_ItemDataBound">
                <ItemTemplate>
                    <div style="width: 100%; text-align: center; background-color: Gray; color: White;">
                        <strong>
                            <asp:Label ID="lblMonth" runat="server"></asp:Label></strong><br />
                        <%=Resources.Language.Packages %>:
                        <asp:Label ID="lblShipments" runat="server"></asp:Label>
                        <%=Resources.Language.Goods %>:
                        <asp:Label ID="lblProducts" runat="server"></asp:Label>
                        <%=Resources.Language.TurnoverBrutto %>:
                        <asp:Label ID="lblAmount" runat="server"></asp:Label>
                    </div>
                    <asp:GridView ID="gvDaySell" runat="server" AutoGenerateColumns="false" ShowHeader="false"
                        CssClass="cmsTables">
                        <Columns>
                            <asp:BoundField DataField="ProductID" ItemStyle-Width="5%" />
                            <asp:BoundField DataField="Name" ItemStyle-Width="80%" />
                            <asp:BoundField DataField="Count" ItemStyle-Width="5%" />
                            <asp:BoundField DataField="Price" ItemStyle-Width="10%" />
                        </Columns>
                    </asp:GridView>
                    <br />
                </ItemTemplate>
            </asp:Repeater>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
